package com.ants.boot.wx.dao;

import com.ants.boot.wx.domain.WxArticle;
import com.ants.boot.wx.dto.wxarticle.WxPageInfoDto;
import com.ants.boot.wx.vo.wxarticle.DetailArticleVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;


/**
 * @author 蚂蚁会花呗
 * @date 2022/6/7 10:08
 */
public interface WxArticleMapper extends BaseMapper<WxArticle> {

    /**
     * 微信分页
     * @param page
     * @return
     */
    IPage<WxArticle> wxPageInfo(Page<WxArticle> page, @Param("dto") WxPageInfoDto dto);

    /**
     * 查询详情
     * @param articleId
     * @return
     */
    DetailArticleVo wxSelectOne(Long articleId);
}
